package com.github.pig.admin.service.sys.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.github.pig.admin.mapper.sys.SysCommunityUserMapper;
import com.github.pig.admin.mapper.sys.SysDictMapper;
import com.github.pig.admin.model.entity.SysCommunityUser;
import com.github.pig.admin.model.entity.SysDict;
import com.github.pig.admin.service.sys.SysCommunityUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysCommunityUserServiceImpl extends ServiceImpl<SysCommunityUserMapper, SysCommunityUser> implements  SysCommunityUserService {


    @Autowired
    SysCommunityUserMapper sysCommunityUserMapper;
    /**
     * 根据用户id获取到小区用户关联集合
     * @param  userId
     * @return
     */
    @Override
    public List<SysCommunityUser> getCurrentUserCommunityId(Integer userId) {
        return sysCommunityUserMapper.getCurrentUserCommunityId(userId);
    }

}
